using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using JigLibX.Collision;
using JigLibX.Physics;
using sqengine.Engine;
using sqengine.Engine.Common;

namespace sqengine.PhysicObjects
{
    class PlaneObject : BasicObject
    {
        public PlaneObject(Game game, Model model, float d, AdvancedContent adcontent, string t_terrain)
            : base(game, model, t_terrain)
        {
            body = new Body();


            collision = new CollisionSkin(null);
            collision.AddPrimitive(new JigLibX.Geometry.Plane(Vector3.Up, d), new MaterialProperties(0.2f, 0.7f, 0.6f));
            PhysicsSystem.CurrentPhysicsSystem.CollisionSystem.AddCollisionSkin(collision);

        }

        public override void ApplyEffects(BasicEffect effect)
        {


        }
    }
}
